<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册 - 橙园社区</title>
    <link rel="stylesheet" href="../css/register.css">
</head>
<body>
    <div class="container">
        <h1>橙园社区</h1>
        <form id="registerForm">
            <div class="form-group">
                <label for="email">邮箱</label>
                <input type="text" id="email" required>
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" id="password" required>
            </div>
            <div class="form-group">
                <label for="confirm-password">确认密码</label>
                <input type="password" id="confirm-password" required>
                <div class="error" id="passwordError" style="display:none;">密码不一致</div>
            </div>
            <div class="form-group">
                <label for="code">验证码</label>
                <div style="display: flex; gap: 10px; align-items: center;">
                    <input type="text" id="code" required placeholder="输入验证码" style="flex:1;">
                    <button type="button" id="sendCodeBtn" style="min-width:90px;">发送验证码</button>
                </div>
            </div>
            <button type="submit">确认注册</button>
            <div class="message">
                <p>已经有账号了？<a href="login.html">立即登录</a></p>
            </div>
        </form>
    </div>
    <script src="../js/register.js"></script>
    <script src="//instant.page/5.2.0" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>
</body>
</html>
